/*Created on 2007-10-30
 * 
 */
package com.linkage.lcims.base.dao.business.impl;

import java.util.List;

import com.linkage.lcims.base.dao.HibernateBaseDAOImpl;
import com.linkage.lcims.base.dao.business.interfaces.NasDAO;
import com.linkage.lcims.base.po.business.BdNas;
import com.linkage.util.exception.DAOException;

@SuppressWarnings("unchecked")
public class NasDAOImpl extends HibernateBaseDAOImpl implements NasDAO {

	public NasDAOImpl() {
		super();
	}

	public void deleteNas(BdNas nas) throws DAOException {
		this.delete(nas);
	}

	public List<BdNas> getAll() throws DAOException {
		return this.getAll(BdNas.class);
	}

	public void saveNas(BdNas nas) throws DAOException {
		this.save(nas);
	}

	public void updateNas(BdNas nas) throws DAOException {
		this.merge(nas);
	}

	public BdNas getNasByIp(String nasip) throws DAOException {
		return (BdNas) this.getByID(BdNas.class, nasip);	
	}

}
